{{- if .Values.nodeManager.internal.capsControllerManagerEnabled }}
---
apiVersion: v1
kind: Secret
type: kubernetes.io/tls
metadata:
  name: caps-controller-manager-webhook-tls
  namespace: d8-cloud-instance-manager
  {{- include "helm_lib_module_labels" (list . (dict "app" "caps-controller-manager")) | nindent 2 }}
data:
  ca.crt: {{ .Values.nodeManager.internal.capsControllerManagerWebhookCert.ca | b64enc }}
  tls.crt: {{ .Values.nodeManager.internal.capsControllerManagerWebhookCert.crt | b64enc }}
  tls.key: {{ .Values.nodeManager.internal.capsControllerManagerWebhookCert.key | b64enc }}
{{- end }}
